# python program to make a simple calculator
0 minute read
# python program to make a simple calculator
# python program to make a simple calculator
n1 = float(input("enter first number"))
n2 = float(input("enter secont number"))
op = input("enter operation")
if op =="+":
print(n1+n2)
elif op =="-":
print(n1-n2)
elif op =="*":
print(n1*n2)
elif op =="/":
print(n1/n2)
elif op =="**":
print(n1**n2)
else:
print("Invalid option")
Post a Comment